import { Navigate } from "react-router-dom"
import Home from "../Home"
import Login from "../Login"
import Index from "../home/Index"
import Manage from "../home/Manage"
const router = [
    {
        path: "/",
        element: <Navigate to="/home"></Navigate>
    },
    {
        path: "/home",
        element: <Home></Home>,
        children: [
            {
                path: "/home",
                element: <Navigate to="/home/index"></Navigate>
            },
            {
                path: "/home/index",
                element: <Index></Index>,
            }, {
                path: "/home/manage",
                element: <Manage></Manage>,
            }
        ]
    }
    , {
        path: "/login",
        element: <Login></Login>
    }


]

export default router